// 当前设备是PC端还是移动端
export function isPC() {
  let userAgentInfo = navigator.userAgent;
  let Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
  let flag = true;
  for (let v = 0; v < Agents.length; v++) {
    if (userAgentInfo.indexOf(Agents[v]) > 0) {
      flag = false;
      break;
    }
  }
  console.log(`${flag ? "pc" : "移动端"}`);

  return flag;
}

// 当前是开发环境还是生产环境
export function currentEnv() {
  return import.meta.env.MODE;
}
